package com.hippoDocker.streamrabbitmqp.cotroller;

import com.hippoDocker.streamrabbitmqp.service.IMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName SendMessageController
 * @Description TODO 发送消息
 * @Author hippoDocker
 * @Date 2022/7/6 9:33
 **/
@RestController
public class SendMessageController {
    @Resource
    private IMessageProvider iMessageProvider;

    @GetMapping("/sendmessage")
    public String sendMessage(){
        return iMessageProvider.send();
    }
}
